package org.misalen.web.database.model.mysql.pro;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.misalen.annotations.ModelComment;
import org.misalen.web.database.model.mysql.BaseSqlModel;

/**
 * 地图广告内容
 * 
 * @author jianhun
 *
 */
@Entity
@Table(name = "ProMapReward")
@DynamicInsert(true)
@DynamicUpdate(true)
public class ProMapReward extends BaseSqlModel {

	@ModelComment("地图广告id")
	@Column(name = "mapId", nullable = false)
	private String mapId;

	@ModelComment("用户id")
	@Column(name = "userId")
	private String userId;

	@ModelComment("金额(分)")
	@Column(name = "money", nullable = false)
	private Integer money;

	@ModelComment("分享获得的金额(分)")
	@Column(name = "money2", nullable = false)
	private Integer money2;

	@ModelComment("抢到的时间")
	@Column(name = "getTime")
	private Date getTime;

	@ModelComment("分享第一次点击的时间")
	@Column(name = "getTime2")
	private Date getTime2;

	@Transient
	@ModelComment("用户名")
	private String userName;

	/**
	 * 获取getTime2
	 * 
	 * @return getTime2 getTime2
	 */
	public Date getGetTime2() {
		return getTime2;
	}

	/**
	 * 设置getTime2
	 * 
	 * @param getTime2
	 *            getTime2
	 */
	public void setGetTime2(Date getTime2) {
		this.getTime2 = getTime2;
	}

	/**
	 * 获取money2
	 * 
	 * @return money2 money2
	 */
	public Integer getMoney2() {
		return money2;
	}

	/**
	 * 设置money2
	 * 
	 * @param money2
	 *            money2
	 */
	public void setMoney2(Integer money2) {
		this.money2 = money2;
	}

	/**
	 * 获取mapId
	 * 
	 * @return mapId mapId
	 */
	public String getMapId() {
		return mapId;
	}

	/**
	 * 设置mapId
	 * 
	 * @param mapId
	 *            mapId
	 */
	public void setMapId(String mapId) {
		this.mapId = mapId;
	}

	/**
	 * 获取userId
	 * 
	 * @return userId userId
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * 设置userId
	 * 
	 * @param userId
	 *            userId
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

	/**
	 * 获取money
	 * 
	 * @return money money
	 */
	public Integer getMoney() {
		return money;
	}

	/**
	 * 设置money
	 * 
	 * @param money
	 *            money
	 */
	public void setMoney(Integer money) {
		this.money = money;
	}

	/**
	 * 获取getTime
	 * 
	 * @return getTime getTime
	 */
	public Date getGetTime() {
		return getTime;
	}

	/**
	 * 设置getTime
	 * 
	 * @param getTime
	 *            getTime
	 */
	public void setGetTime(Date getTime) {
		this.getTime = getTime;
	}

	/**
	 * 获取userName
	 * 
	 * @return userName userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * 设置userName
	 * 
	 * @param userName
	 *            userName
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

}
